home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / cenvid / count.bat < prev    next >
DOS Batch File  |  1995-10-04  |  315b  |  16 lines

  1. @echo off
  2. REM  COUNT.BAT - Count from 1 to specified number
  3. REM  EXAMPLE: COUNT 100
  4.  
  5. IF _%1_==__ ECHO USAGE COUNT #
  6. IF _%1_==__ ECHO EXAMPLE COUNT 10
  7. IF _%1_==__ GOTO FINISHED
  8.  
  9.  
  10. SET COUNT=0
  11. :TOP_OF_LOOP
  12.    CEnviD COUNT = COUNT + 1
  13.    ECHO %COUNT%
  14.    IF NOT _%COUNT%_==_%1_ GOTO TOP_OF_LOOP
  15.  
  16. :FINISHED